import type { GeneratedEtsLibFile } from "../../types/generated";

export const FILE: GeneratedEtsLibFile = {
  path: 'ets/component/rich_editor.d.ts',
  content: "/*\n * Copyright (c) 2023 Huawei Device Co., Ltd.\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n *     http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n/**\n * @file\n * @kit ArkUI\n */\n/**\n * Defines delete text direction.\n *\n * @enum { number }\n * @syscap SystemCapability.ArkUI.ArkUI.Full\n * @since 10\n */\n/**\n * Defines delete text direction.\n *\n * @enum { number }\n * @syscap SystemCapability.ArkUI.ArkUI.Full\n * @crossplatform\n * @atomicservice\n * @since 11\n */\ndeclare enum RichEditorDeleteDirection {\n    /**\n     * Delete backward.\n     *\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @since 10\n     */\n    /**\n     * Delete backward.\n     *\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @crossplatform\n     * @atomicservice\n     * @since 11\n     */\n    BACKWARD,\n    /**\n     * Delete forward.\n     *\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @since 10\n     */\n    /**\n     * Delete forward.\n     *\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @crossplatform\n     * @atomicservice\n     * @since 11\n     */\n    FORWARD\n}\n/**\n * Defines span type.\n *\n * @enum { number }\n * @syscap SystemCapability.ArkUI.ArkUI.Full\n * @since 10\n */\n/**\n * Defines span type.\n *\n * @enum { number }\n * @syscap SystemCapability.ArkUI.ArkUI.Full\n * @crossplatform\n * @atomicservice\n * @since 11\n */\ndeclare enum RichEditorSpanType {\n    /**\n     * Text,corresponding textSpan type.\n     *\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @since 10\n     */\n    /**\n     * Text,corresponding textSpan type.\n     *\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @crossplatform\n     * @atomicservice\n     * @since 11\n     */\n    TEXT = 0,\n    /**\n     * Image,corresponding imageSpan type.\n     *\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @since 10\n     */\n    /**\n     * Image,corresponding imageSpan type.\n     *\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @crossplatform\n     * @atomicservice\n     * @since 11\n     */\n    IMAGE = 1,\n    /**\n     * Mixed,corresponding mixed span type.\n     *\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @since 10\n     */\n    /**\n     * Mixed,corresponding mixed span type.\n     *\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @crossplatform\n     * @atomicservice\n     * @since 11\n     */\n    MIXED = 2,\n    /**\n     * Builder,corresponding builderSpan type.\n     *\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @crossplatform\n     * @atomicservice\n     * @since 12\n     */\n    BUILDER = 3,\n    /**\n     * When no other types are explicitly specified, this type will be matched.\n     *\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @crossplatform\n     * @atomicservice\n     * @since 15\n     */\n    DEFAULT = 4\n}\n/**\n * Defines undo style.\n *\n * @enum { number }\n * @syscap SystemCapability.ArkUI.ArkUI.Full\n * @crossplatform\n * @atomicservice\n * @since 20\n */\ndeclare enum UndoStyle {\n    /**\n     * Undo without style.\n     *\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @crossplatform\n     * @atomicservice\n     * @since 20\n     */\n    CLEAR_STYLE = 0,\n    /**\n     * Undo keep style.\n     *\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @crossplatform\n     * @atomicservice\n     * @since 20\n     */\n    KEEP_STYLE = 1\n}\n/**\n * ResponseType for contextMenu\n *\n * @enum { number }\n * @syscap SystemCapability.ArkUI.ArkUI.Full\n * @crossplatform\n * @since 11\n */\n/**\n * ResponseType for contextMenu\n *\n * @enum { number }\n * @syscap SystemCapability.ArkUI.ArkUI.Full\n * @crossplatform\n * @atomicservice\n * @since 12\n */\ndeclare enum RichEditorResponseType {\n    /**\n     * Right click.\n     *\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @crossplatform\n     * @since 11\n     */\n    /**\n     * Right click.\n     *\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @crossplatform\n     * @atomicservice\n     * @since 12\n     */\n    RIGHT_CLICK = 0,\n    /**\n     * Long press.\n     *\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @crossplatform\n     * @since 11\n     */\n    /**\n     * Long press.\n     *\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @crossplatform\n     * @atomicservice\n     * @since 12\n     */\n    LONG_PRESS = 1,\n    /**\n     * Selected by mouse.\n     *\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @crossplatform\n     * @since 11\n     */\n    /**\n     * Selected by mouse.\n     *\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @crossplatform\n     * @atomicservice\n     * @since 12\n     */\n    SELECT = 2,\n    /**\n     * When no other types are explicitly specified, this type will be matched.\n     *\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @crossplatform\n     * @atomicservice\n     * @since 15\n     */\n    DEFAULT = 3\n}\n/**\n * Defines the span position.\n *\n * @interface RichEditorSpanPosition\n * @syscap SystemCapability.ArkUI.ArkUI.Full\n * @since 10\n */\n/**\n * Defines the span position.\n *\n * @interface RichEditorSpanPosition\n * @syscap SystemCapability.ArkUI.ArkUI.Full\n * @crossplatform\n * @atomicservice\n * @since 11\n */\ndeclare interface RichEditorSpanPosition {\n    /**\n     * Define the index of span.\n     *\n     * @type { number }\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @since 10\n     */\n    /**\n     * Define the index of span.\n     *\n     * @type { number }\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @crossplatform\n     * @atomicservice\n     * @since 11\n     */\n    spanIndex: number;\n    /**\n     * The range of span.\n     *\n     * @type { [number, number] }\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @since 10\n     */\n    /**\n     * The range of span.\n     *\n     * @type { [number, number] }\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @crossplatform\n     * @atomicservice\n     * @since 11\n     */\n    spanRange: [\n        number,\n        number\n    ];\n}\n/**\n * Defines the span text style.\n *\n * @interface RichEditorTextStyle\n * @syscap SystemCapability.ArkUI.ArkUI.Full\n * @since 10\n */\n/**\n * Defines the span text style.\n *\n * @interface RichEditorTextStyle\n * @syscap SystemCapability.ArkUI.ArkUI.Full\n * @crossplatform\n * @atomicservice\n * @since 11\n */\ndeclare interface RichEditorTextStyle {\n    /**\n     * font color.\n     *\n     * @type { ?ResourceColor }\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @since 10\n     */\n    /**\n     * font color.\n     *\n     * @type { ?ResourceColor }\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @crossplatform\n     * @atomicservice\n     * @since 11\n     */\n    fontColor?: ResourceColor;\n    /**\n     * font size.\n     *\n     * @type { ?(Length | number) }\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @since 10\n     */\n    /**\n     * font size.\n     *\n     * @type { ?(Length | number) }\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @crossplatform\n     * @atomicservice\n     * @since 11\n     */\n    fontSize?: Length | number;\n    /**\n     * font style.\n     *\n     * @type { ?FontStyle }\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @since 10\n     */\n    /**\n     * font style.\n     *\n     * @type { ?FontStyle }\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @crossplatform\n     * @atomicservice\n     * @since 11\n     */\n    fontStyle?: FontStyle;\n    /**\n     * font weight.\n     *\n     * @type { ?(number | FontWeight | string) }\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @since 10\n     */\n    /**\n     * font weight.\n     *\n     * @type { ?(number | FontWeight | string) }\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @crossplatform\n     * @atomicservice\n     * @since 11\n     */\n    fontWeight?: number | FontWeight | string;\n    /**\n     * font family.\n     *\n     * @type { ?ResourceStr }\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @since 10\n     */\n    /**\n     * font family.\n     *\n     * @type { ?ResourceStr }\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @crossplatform\n     * @atomicservice\n     * @since 11\n     */\n    fontFamily?: ResourceStr;\n    /**\n     * font decoration.\n     *\n     * @type { ?object }\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @since 10\n     */\n    /**\n     * font decoration.\n     *\n     * @type { ?object }\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @crossplatform\n     * @atomicservice\n     * @since 11\n     */\n    /**\n     * Font decoration.\n     *\n     * @type { ?DecorationStyleInterface }\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @crossplatform\n     * @atomicservice\n     * @since 12\n     */\n    decoration?: DecorationStyleInterface;\n    /**\n     * Text shadow\n     *\n     * @type { ?(ShadowOptions | Array<ShadowOptions>) }\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @crossplatform\n     * @since 11\n     */\n    /**\n     * Text shadow\n     *\n     * @type { ?(ShadowOptions | Array<ShadowOptions>) }\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @crossplatform\n     * @atomicservice\n     * @since 12\n     */\n    textShadow?: ShadowOptions | Array<ShadowOptions>;\n    /**\n     * letter spacing.\n     *\n     * @type { ?(number | string) }\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @crossplatform\n     * @atomicservice\n     * @since 12\n     */\n    letterSpacing?: number | string;\n    /**\n     * line height.\n     *\n     * @type { ? (number | string | Resource) }\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @crossplatform\n     * @atomicservice\n     * @since 12\n     */\n    lineHeight?: number | string | Resource;\n    /**\n     * Set the text with half leading.\n     *\n     * @type { ?boolean }\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @crossplatform\n     * @atomicservice\n     * @since 18\n     */\n    halfLeading?: boolean;\n    /**\n     * Set font feature, advanced text styles and effects as designed by the font author.\n     * The format is the like the CSS font-feature-settings attribute.\n     *\n     * @type { ?string }\n     * normal | <feature-tag-value>,\n     * where <feature-tag-value> = <string> [ <integer> | on | off ], like: \"ss01\" 0\n     * the values of <feature-tag-value> reference to doc of RichEditor component\n     * number of <feature-tag-value> can be single or multiple, and separated by comma ','.\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @crossplatform\n     * @atomicservice\n     * @since 12\n     */\n    fontFeature?: string;\n    /**\n     * Text background style.\n     *\n     * @type { ?TextBackgroundStyle }\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @crossplatform\n     * @atomicservice\n     * @since 18\n     */\n    textBackgroundStyle?: TextBackgroundStyle;\n}\n/**\n * Defines the leading margin placeholder of a paragraph.\n *\n * @interface LeadingMarginPlaceholder\n * @syscap SystemCapability.ArkUI.ArkUI.Full\n * @crossplatform\n * @since 11\n */\n/**\n * Defines the leading margin placeholder of a paragraph.\n *\n * @interface LeadingMarginPlaceholder\n * @syscap SystemCapability.ArkUI.ArkUI.Full\n * @crossplatform\n * @atomicservice\n * @since 12\n */\ndeclare interface LeadingMarginPlaceholder {\n    /**\n     * Placeholder pixelMap.\n     *\n     * @type { PixelMap }\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @crossplatform\n     * @since 11\n     */\n    /**\n     * Placeholder pixelMap.\n     *\n     * @type { PixelMap }\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @crossplatform\n     * @atomicservice\n     * @since 12\n     */\n    pixelMap: PixelMap;\n    /**\n     * Placeholder size.\n     *\n     * @type { [Dimension, Dimension] }\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @crossplatform\n     * @since 11\n     */\n    /**\n     * Placeholder size.\n     *\n     * @type { [Dimension, Dimension] }\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @crossplatform\n     * @atomicservice\n     * @since 12\n     */\n    size: [\n        Dimension,\n        Dimension\n    ];\n}\n/**\n * Defines the paragraph style.\n *\n * @interface RichEditorParagraphStyle\n * @syscap SystemCapability.ArkUI.ArkUI.Full\n * @crossplatform\n * @since 11\n */\n/**\n * Defines the paragraph style.\n *\n * @interface RichEditorParagraphStyle\n * @syscap SystemCapability.ArkUI.ArkUI.Full\n * @crossplatform\n * @atomicservice\n * @since 12\n */\ndeclare interface RichEditorParagraphStyle {\n    /**\n     * Text alignment.\n     *\n     * @type { ?TextAlign }\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @crossplatform\n     * @since 11\n     */\n    /**\n     * Text alignment.\n     *\n     * @type { ?TextAlign }\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @crossplatform\n     * @atomicservice\n     * @since 12\n     */\n    textAlign?: TextAlign;\n    /**\n     * Leading margin.\n     *\n     * @type { ?(Dimension | LeadingMarginPlaceholder) }\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @crossplatform\n     * @since 11\n     */\n    /**\n     * Leading margin.\n     *\n     * @type { ?(Dimension | LeadingMarginPlaceholder) }\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @crossplatform\n     * @atomicservice\n     * @since 12\n     */\n    leadingMargin?: Dimension | LeadingMarginPlaceholder;\n    /**\n     * Set word break type.\n     *\n     * @type { ?WordBreak }\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @crossplatform\n     * @atomicservice\n     * @since 12\n     */\n    wordBreak?: WordBreak;\n    /**\n     * Set line break strategy type.\n     *\n     * @type { ?LineBreakStrategy }\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @crossplatform\n     * @atomicservice\n     * @since 12\n     */\n    lineBreakStrategy?: LineBreakStrategy;\n    /**\n     * Set paragraph spacing.\n     *\n     * @type { ?number }\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @crossplatform\n     * @atomicservice\n     * @since 19\n     */\n    paragraphSpacing?: number;\n}\n/**\n * Defines the paste event.\n *\n * @interface PasteEvent\n * @syscap SystemCapability.ArkUI.ArkUI.Full\n * @crossplatform\n * @atomicservice\n * @since 11\n */\ndeclare interface PasteEvent {\n    /**\n     * Override system paste event.\n     *\n     * @type { ?function }\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @crossplatform\n     * @atomicservice\n     * @since 11\n     */\n    /**\n     * Override system paste event.\n     *\n     * @type { ?Callback<void> }\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @crossplatform\n     * @atomicservice\n     * @since 12\n     */\n    preventDefault?: Callback<void>;\n}\n/**\n * Defines the text span.\n *\n * @interface RichEditorTextSpan\n * @syscap SystemCapability.ArkUI.ArkUI.Full\n * @since 10\n */\n/**\n * Defines the text span.\n *\n * @interface RichEditorTextSpan\n * @syscap SystemCapability.ArkUI.ArkUI.Full\n * @crossplatform\n * @atomicservice\n * @since 11\n */\ndeclare interface RichEditorTextSpan {\n    /**\n     * The position of the text span.\n     *\n     * @type { RichEditorSpanPosition }\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @since 10\n     */\n    /**\n     * The position of the text span.\n     *\n     * @type { RichEditorSpanPosition }\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @crossplatform\n     * @atomicservice\n     * @since 11\n     */\n    spanPosition: RichEditorSpanPosition;\n    /**\n     * The content of the text span.\n     *\n     * @type { string }\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @since 10\n     */\n    /**\n     * The content of the text span.\n     *\n     * @type { string }\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @crossplatform\n     * @atomicservice\n     * @since 11\n     */\n    value: string;\n    /**\n     * text style.\n     *\n     * @type { ?RichEditorTextStyle }\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @since 10\n     */\n    /**\n     * text style.\n     *\n     * @type { ?RichEditorTextStyle }\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @crossplatform\n     * @atomicservice\n     * @since 11\n     */\n    textStyle?: RichEditorTextStyle;\n}\n/**\n * Defines the richEditor Image Layout Style.\n *\n * @interface RichEditorLayoutStyle\n * @syscap SystemCapability.ArkUI.ArkUI.Full\n * @crossplatform\n * @since 11\n */\n/**\n * Defines the richEditor Image Layout Style.\n *\n * @interface RichEditorLayoutStyle\n * @syscap SystemCapability.ArkUI.ArkUI.Full\n * @crossplatform\n * @atomicservice\n * @since 12\n */\ninterface RichEditorLayoutStyle {\n    /**\n     * Outer Margin.\n     *\n     * @type { ?(Dimension | Margin) }\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @crossplatform\n     * @since 11\n     */\n    /**\n     * Outer Margin.\n     *\n     * @type { ?(Dimension | Margin) }\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @crossplatform\n     * @atomicservice\n     * @since 12\n     */\n    margin?: Dimension | Margin;\n    /**\n     * Border radius.\n     *\n     * @type { ?(Dimension | BorderRadiuses) }\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @crossplatform\n     * @since 11\n     */\n    /**\n     * Border radius.\n     *\n     * @type { ?(Dimension | BorderRadiuses) }\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @crossplatform\n     * @atomicservice\n     * @since 12\n     */\n    borderRadius?: Dimension | BorderRadiuses;\n}\n/**\n * Defines the span image style.\n *\n * @interface RichEditorImageSpanStyle\n * @syscap SystemCapability.ArkUI.ArkUI.Full\n * @since 10\n */\n/**\n * Defines the span image style.\n *\n * @interface RichEditorImageSpanStyle\n * @syscap SystemCapability.ArkUI.ArkUI.Full\n * @crossplatform\n * @atomicservice\n * @since 11\n */\ndeclare interface RichEditorImageSpanStyle {\n    /**\n     * image size.\n     *\n     * @type { ?[Dimension, Dimension] }\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @since 10\n     */\n    /**\n     * image size.\n     *\n     * @type { ?[Dimension, Dimension] }\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @crossplatform\n     * @atomicservice\n     * @since 11\n     */\n    size?: [\n        Dimension,\n        Dimension\n    ];\n    /**\n     * image vertical align.\n     *\n     * @type { ?ImageSpanAlignment }\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @since 10\n     */\n    /**\n     * image vertical align.\n     *\n     * @type { ?ImageSpanAlignment }\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @crossplatform\n     * @atomicservice\n     * @since 11\n     */\n    verticalAlign?: ImageSpanAlignment;\n    /**\n     * image fit.\n     *\n     * @type { ?ImageFit }\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @since 10\n     */\n    /**\n     * image fit.\n     *\n     * @type { ?ImageFit }\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @crossplatform\n     * @atomicservice\n     * @since 11\n     */\n    objectFit?: ImageFit;\n    /**\n     * RichEditor ImageSpan Layout Style.\n     *\n     * @type { ?RichEditorLayoutStyle }\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @crossplatform\n     * @since 11\n     */\n    /**\n     * RichEditor ImageSpan Layout Style.\n     *\n     * @type { ?RichEditorLayoutStyle }\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @crossplatform\n     * @atomicservice\n     * @since 12\n     */\n    layoutStyle?: RichEditorLayoutStyle;\n}\n/**\n * Defines the symbol span style.\n *\n * @interface RichEditorSymbolSpanStyle\n * @syscap SystemCapability.ArkUI.ArkUI.Full\n * @crossplatform\n * @since 11\n */\n/**\n * Defines the symbol span style.\n *\n * @interface RichEditorSymbolSpanStyle\n * @syscap SystemCapability.ArkUI.ArkUI.Full\n * @crossplatform\n * @atomicservice\n * @since 12\n */\ndeclare interface RichEditorSymbolSpanStyle {\n    /**\n     * The font size.\n     *\n     * @type { ?(number | string | Resource) }\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @crossplatform\n     * @since 11\n     */\n    /**\n     * The font size.\n     *\n     * @type { ?(number | string | Resource) }\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @crossplatform\n     * @atomicservice\n     * @since 12\n     */\n    fontSize?: number | string | Resource;\n    /**\n     * The font color.\n     *\n     * @type { ?Array<ResourceColor> }\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @crossplatform\n     * @since 11\n     */\n    /**\n     * The font color.\n     *\n     * @type { ?Array<ResourceColor> }\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @crossplatform\n     * @atomicservice\n     * @since 12\n     */\n    fontColor?: Array<ResourceColor>;\n    /**\n     * The font weight.\n     *\n     * @type { ?(number | FontWeight | string) }\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @crossplatform\n     * @since 11\n     */\n    /**\n     * The font weight.\n     *\n     * @type { ?(number | FontWeight | string) }\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @crossplatform\n     * @atomicservice\n     * @since 12\n     */\n    fontWeight?: number | FontWeight | string;\n    /**\n     * The symbol span effect strategy.\n     *\n     * @type { ?SymbolEffectStrategy }\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @crossplatform\n     * @since 11\n     */\n    /**\n     * The symbol span effect strategy.\n     *\n     * @type { ?SymbolEffectStrategy }\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @crossplatform\n     * @atomicservice\n     * @since 12\n     */\n    effectStrategy?: SymbolEffectStrategy;\n    /**\n     * The symbol span rendering strategy.\n     *\n     * @type { ?SymbolRenderingStrategy }\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @crossplatform\n     * @since 11\n     */\n    /**\n     * The symbol span rendering strategy.\n     *\n     * @type { ?SymbolRenderingStrategy }\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @crossplatform\n     * @atomicservice\n     * @since 12\n     */\n    renderingStrategy?: SymbolRenderingStrategy;\n}\n/**\n * Defines the text style result.\n *\n * @interface RichEditorTextStyleResult\n * @syscap SystemCapability.ArkUI.ArkUI.Full\n * @since 10\n */\n/**\n * Defines the text style result.\n *\n * @interface RichEditorTextStyleResult\n * @syscap SystemCapability.ArkUI.ArkUI.Full\n * @crossplatform\n * @atomicservice\n * @since 11\n */\ndeclare interface RichEditorTextStyleResult {\n    /**\n     * font color.\n     *\n     * @type { ResourceColor }\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @since 10\n     */\n    /**\n     * font color.\n     *\n     * @type { ResourceColor }\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @crossplatform\n     * @atomicservice\n     * @since 11\n     */\n    fontColor: ResourceColor;\n    /**\n     * font size.\n     *\n     * @type { number }\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @since 10\n     */\n    /**\n     * font size.\n     *\n     * @type { number }\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @crossplatform\n     * @atomicservice\n     * @since 11\n     */\n    fontSize: number;\n    /**\n     * font style.\n     *\n     * @type { FontStyle }\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @since 10\n     */\n    /**\n     * font style.\n     *\n     * @type { FontStyle }\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @crossplatform\n     * @atomicservice\n     * @since 11\n     */\n    fontStyle: FontStyle;\n    /**\n     * font weight.\n     *\n     * @type { number }\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @since 10\n     */\n    /**\n     * font weight.\n     *\n     * @type { number }\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @crossplatform\n     * @atomicservice\n     * @since 11\n     */\n    fontWeight: number;\n    /**\n     * font family.\n     *\n     * @type { string }\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @since 10\n     */\n    /**\n     * font family.\n     *\n     * @type { string }\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @crossplatform\n     * @atomicservice\n     * @since 11\n     */\n    fontFamily: string;\n    /**\n     * font decoration.\n     *\n     * @type { object }\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @since 10\n     */\n    /**\n     * font decoration.\n     *\n     * @type { object }\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @crossplatform\n     * @atomicservice\n     * @since 11\n     */\n    /**\n     * Font decoration.\n     *\n     * @type { DecorationStyleResult }\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @crossplatform\n     * @atomicservice\n     * @since 12\n     */\n    decoration: DecorationStyleResult;\n    /**\n     * Text shadow\n     *\n     * @type { ?Array<ShadowOptions> }\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @crossplatform\n     * @atomicservice\n     * @since 12\n     */\n    textShadow?: Array<ShadowOptions>;\n    /**\n     * letter spacing.\n     *\n     * @type { ?number }\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @crossplatform\n     * @atomicservice\n     * @since 12\n     */\n    letterSpacing?: number;\n    /**\n     * line height.\n     *\n     * @type { ?number }\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @crossplatform\n     * @atomicservice\n     * @since 12\n     */\n    lineHeight?: number;\n    /**\n     * Set the text with half leading.\n     *\n     * @type { ?boolean }\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @crossplatform\n     * @atomicservice\n     * @since 18\n     */\n    halfLeading?: boolean;\n    /**\n     * Set font feature, advanced text styles and effects as designed by the font author.\n     * The format is the like the CSS font-feature-settings attribute.\n     *\n     * @type { ?string }\n     * normal | <feature-tag-value>,\n     * where <feature-tag-value> = <string> [ <integer> | on | off ], like: \"ss01\" 0\n     * the values of <feature-tag-value> reference to doc of RichEditor component\n     * number of <feature-tag-value> can be single or multiple, and separated by comma ','.\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @crossplatform\n     * @atomicservice\n     * @since 12\n     */\n    fontFeature?: string;\n    /**\n     * Text background style.\n     *\n     * @type { ?TextBackgroundStyle }\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @crossplatform\n     * @atomicservice\n     * @since 18\n     */\n    textBackgroundStyle?: TextBackgroundStyle;\n}\n/**\n * Defines the paragraph result.\n *\n * @interface RichEditorParagraphResult\n * @syscap SystemCapability.ArkUI.ArkUI.Full\n * @crossplatform\n * @since 11\n */\n/**\n * Defines the paragraph result.\n *\n * @interface RichEditorParagraphResult\n * @syscap SystemCapability.ArkUI.ArkUI.Full\n * @crossplatform\n * @atomicservice\n * @since 12\n */\ndeclare interface RichEditorParagraphResult {\n    /**\n     * The paragraph style.\n     *\n     * @type { RichEditorParagraphStyle }\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @crossplatform\n     * @since 11\n     */\n    /**\n     * The paragraph style.\n     *\n     * @type { RichEditorParagraphStyle }\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @crossplatform\n     * @atomicservice\n     * @since 12\n     */\n    style: RichEditorParagraphStyle;\n    /**\n     * The range of paragraph based on character indices.\n     *\n     * @type { [number, number] }\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @crossplatform\n     * @since 11\n     */\n    /**\n     * The range of paragraph based on character indices.\n     *\n     * @type { [number, number] }\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @crossplatform\n     * @atomicservice\n     * @since 12\n     */\n    range: [\n        number,\n        number\n    ];\n}\n/**\n * Defines the symbol span style result.\n *\n * @interface RichEditorSymbolSpanStyleResult\n * @syscap SystemCapability.ArkUI.ArkUI.Full\n * @crossplatform\n * @since 11\n */\n/**\n * Defines the symbol span style result.\n *\n * @interface RichEditorSymbolSpanStyleResult\n * @syscap SystemCapability.ArkUI.ArkUI.Full\n * @crossplatform\n * @atomicservice\n * @since 12\n */\ndeclare interface RichEditorSymbolSpanStyleResult {\n    /**\n     * The font size.\n     *\n     * @type { number | string | Resource }\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @crossplatform\n     * @since 11\n     */\n    /**\n     * The font size.\n     *\n     * @type { number | string | Resource }\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @crossplatform\n     * @atomicservice\n     * @since 12\n     */\n    fontSize: number | string | Resource;\n    /**\n     * The font color.\n     *\n     * @type { Array<ResourceColor> }\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @crossplatform\n     * @since 11\n     */\n    /**\n     * The font color.\n     *\n     * @type { Array<ResourceColor> }\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @crossplatform\n     * @atomicservice\n     * @since 12\n     */\n    fontColor: Array<ResourceColor>;\n    /**\n     * The font weight.\n     *\n     * @type { number | FontWeight | string }\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @crossplatform\n     * @since 11\n     */\n    /**\n     * The font weight.\n     *\n     * @type { number | FontWeight | string }\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @crossplatform\n     * @atomicservice\n     * @since 12\n     */\n    fontWeight: number | FontWeight | string;\n    /**\n     * The symbol span effect strategy.\n     *\n     * @type { SymbolEffectStrategy }\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @crossplatform\n     * @since 11\n     */\n    /**\n     * The symbol span effect strategy.\n     *\n     * @type { SymbolEffectStrategy }\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @crossplatform\n     * @atomicservice\n     * @since 12\n     */\n    effectStrategy: SymbolEffectStrategy;\n    /**\n     * The symbol span rendering strategy.\n     *\n     * @type { SymbolRenderingStrategy }\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @crossplatform\n     * @since 11\n     */\n    /**\n     * The symbol span rendering strategy.\n     *\n     * @type { SymbolRenderingStrategy }\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @crossplatform\n     * @atomicservice\n     * @since 12\n     */\n    renderingStrategy: SymbolRenderingStrategy;\n}\n/**\n * Defines the text span result.\n *\n * @interface RichEditorTextSpanResult\n * @syscap SystemCapability.ArkUI.ArkUI.Full\n * @since 10\n */\n/**\n * Defines the text span result.\n *\n * @interface RichEditorTextSpanResult\n * @syscap SystemCapability.ArkUI.ArkUI.Full\n * @crossplatform\n * @atomicservice\n * @since 11\n */\ndeclare interface RichEditorTextSpanResult {\n    /**\n     * The position of the text span.\n     *\n     * @type { RichEditorSpanPosition }\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @since 10\n     */\n    /**\n     * The position of the text span.\n     *\n     * @type { RichEditorSpanPosition }\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @crossplatform\n     * @atomicservice\n     * @since 11\n     */\n    spanPosition: RichEditorSpanPosition;\n    /**\n     * The content of the text span.\n     *\n     * @type { string }\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @since 10\n     */\n    /**\n     * The content of the text span.\n     *\n     * @type { string }\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @crossplatform\n     * @atomicservice\n     * @since 11\n     */\n    value: string;\n    /**\n     * text style.\n     *\n     * @type { RichEditorTextStyleResult }\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @since 10\n     */\n    /**\n     * text style.\n     *\n     * @type { RichEditorTextStyleResult }\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @crossplatform\n     * @atomicservice\n     * @since 11\n     */\n    textStyle: RichEditorTextStyleResult;\n    /**\n     * get offset in span.\n     *\n     * @type { [number, number] }\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @since 10\n     */\n    /**\n     * get offset in span.\n     *\n     * @type { [number, number] }\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @crossplatform\n     * @atomicservice\n     * @since 11\n     */\n    offsetInSpan: [\n        number,\n        number\n    ];\n    /**\n     * Symbol span style.\n     *\n     * @type { ?RichEditorSymbolSpanStyle }\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @crossplatform\n     * @since 11\n     */\n    /**\n     * Symbol span style.\n     *\n     * @type { ?RichEditorSymbolSpanStyle }\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @crossplatform\n     * @atomicservice\n     * @since 12\n     */\n    symbolSpanStyle?: RichEditorSymbolSpanStyle;\n    /**\n     * The resource string of the symbol span.\n     *\n     * @type { ?Resource }\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @crossplatform\n     * @since 11\n     */\n    /**\n     * The resource string of the symbol span.\n     *\n     * @type { ?Resource }\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @crossplatform\n     * @atomicservice\n     * @since 12\n     */\n    valueResource?: Resource;\n    /**\n     * The Style of paragraph.\n     *\n     * @type { ?RichEditorParagraphStyle }\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @crossplatform\n     * @atomicservice\n     * @since 12\n     */\n    paragraphStyle?: RichEditorParagraphStyle;\n    /**\n     * The preview text.\n     *\n     * @type { ?string }\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @crossplatform\n     * @atomicservice\n     * @since 12\n     */\n    previewText?: string;\n    /**\n     * RichEditor url style.\n     *\n     * @type { ?RichEditorUrlStyle }\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @crossplatform\n     * @atomicservice\n     * @since 19\n     */\n    urlStyle?: RichEditorUrlStyle;\n}\n/**\n * Defines the span image style result.\n *\n * @interface RichEditorImageSpanStyleResult\n * @syscap SystemCapability.ArkUI.ArkUI.Full\n * @since 10\n */\n/**\n * Defines the span image style result.\n *\n * @interface RichEditorImageSpanStyleResult\n * @syscap SystemCapability.ArkUI.ArkUI.Full\n * @crossplatform\n * @atomicservice\n * @since 11\n */\ndeclare interface RichEditorImageSpanStyleResult {\n    /**\n     * image size.\n     *\n     * @type { [number, number] }\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @since 10\n     */\n    /**\n     * image size.\n     *\n     * @type { [number, number] }\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @crossplatform\n     * @atomicservice\n     * @since 11\n     */\n    size: [\n        number,\n        number\n    ];\n    /**\n     * image vertical align.\n     *\n     * @type { ImageSpanAlignment }\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @since 10\n     */\n    /**\n     * image vertical align.\n     *\n     * @type { ImageSpanAlignment }\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @crossplatform\n     * @atomicservice\n     * @since 11\n     */\n    verticalAlign: ImageSpanAlignment;\n    /**\n     * image fit.\n     *\n     * @type { ImageFit }\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @since 10\n     */\n    /**\n     * image fit.\n     *\n     * @type { ImageFit }\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @crossplatform\n     * @atomicservice\n     * @since 11\n     */\n    objectFit: ImageFit;\n    /**\n     * RichEditor ImageSpan Layout Style.\n     *\n     * @type { ?RichEditorLayoutStyle }\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @crossplatform\n     * @atomicservice\n     * @since 12\n     */\n    layoutStyle?: RichEditorLayoutStyle;\n}\n/**\n * Defines the image span.\n *\n * @interface RichEditorImageSpanResult\n * @syscap SystemCapability.ArkUI.ArkUI.Full\n * @since 10\n */\n/**\n * Defines the image span.\n *\n * @interface RichEditorImageSpanResult\n * @syscap SystemCapability.ArkUI.ArkUI.Full\n * @crossplatform\n * @atomicservice\n * @since 11\n */\ndeclare interface RichEditorImageSpanResult {\n    /**\n     * The position of the image span.\n     *\n     * @type { RichEditorSpanPosition }\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @since 10\n     */\n    /**\n     * The position of the image span.\n     *\n     * @type { RichEditorSpanPosition }\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @crossplatform\n     * @atomicservice\n     * @since 11\n     */\n    spanPosition: RichEditorSpanPosition;\n    /**\n     * The pixel map of the image span.\n     *\n     * @type { ?PixelMap }\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @since 10\n     */\n    /**\n     * The pixel map of the image span.\n     *\n     * @type { ?PixelMap }\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @crossplatform\n     * @atomicservice\n     * @since 11\n     */\n    valuePixelMap?: PixelMap;\n    /**\n     * The resource string of the image span.\n     *\n     * @type { ?ResourceStr }\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @since 10\n     */\n    /**\n     * The resource string of the image span.\n     *\n     * @type { ?ResourceStr }\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @crossplatform\n     * @atomicservice\n     * @since 11\n     */\n    valueResourceStr?: ResourceStr;\n    /**\n     * image attribute.\n     *\n     * @type { RichEditorImageSpanStyleResult }\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @since 10\n     */\n    /**\n     * image attribute.\n     *\n     * @type { RichEditorImageSpanStyleResult }\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @crossplatform\n     * @atomicservice\n     * @since 11\n     */\n    imageStyle: RichEditorImageSpanStyleResult;\n    /**\n     * get offset in span.\n     *\n     * @type { [number, number] }\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @since 10\n     */\n    /**\n     * get offset in span.\n     *\n     * @type { [number, number] }\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @crossplatform\n     * @atomicservice\n     * @since 11\n     */\n    offsetInSpan: [\n        number,\n        number\n    ];\n}\n/**\n * Defines the image span.\n *\n * @interface RichEditorImageSpan\n * @syscap SystemCapability.ArkUI.ArkUI.Full\n * @since 10\n */\n/**\n * Defines the image span.\n *\n * @interface RichEditorImageSpan\n * @syscap SystemCapability.ArkUI.ArkUI.Full\n * @crossplatform\n * @atomicservice\n * @since 11\n */\ndeclare interface RichEditorImageSpan {\n    /**\n     * The position of the image span.\n     *\n     * @type { RichEditorSpanPosition }\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @since 10\n     */\n    /**\n     * The position of the image span.\n     *\n     * @type { RichEditorSpanPosition }\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @crossplatform\n     * @atomicservice\n     * @since 11\n     */\n    spanPosition: RichEditorSpanPosition;\n    /**\n     * The content of the image span.\n     *\n     * @type { PixelMap | ResourceStr }\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @since 10\n     */\n    /**\n     * The content of the image span.\n     *\n     * @type { PixelMap | ResourceStr }\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @crossplatform\n     * @atomicservice\n     * @since 11\n     */\n    value: PixelMap | ResourceStr;\n    /**\n     * image style.\n     *\n     * @type { ?RichEditorImageSpanStyle }\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @since 10\n     */\n    /**\n     * image style.\n     *\n     * @type { ?RichEditorImageSpanStyle }\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @crossplatform\n     * @atomicservice\n     * @since 11\n     */\n    imageStyle?: RichEditorImageSpanStyle;\n}\n/**\n * Defines range of RichEditor.\n *\n * @interface RichEditorRange\n * @syscap SystemCapability.ArkUI.ArkUI.Full\n * @since 10\n */\n/**\n * Defines range of RichEditor.\n *\n * @interface RichEditorRange\n * @syscap SystemCapability.ArkUI.ArkUI.Full\n * @crossplatform\n * @atomicservice\n * @since 11\n */\ndeclare interface RichEditorRange {\n    /**\n     * start offset.\n     *\n     * @type { ?number }\n     * @default 0\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @since 10\n     */\n    /**\n     * start offset.\n     *\n     * @type { ?number }\n     * @default 0\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @crossplatform\n     * @atomicservice\n     * @since 11\n     */\n    start?: number;\n    /**\n     * end offset.\n     *\n     * @type { ?number }\n     * @default text length\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @since 10\n     */\n    /**\n     * end offset.\n     *\n     * @type { ?number }\n     * @default text length\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @crossplatform\n     * @atomicservice\n     * @since 11\n     */\n    end?: number;\n}\n/**\n * Defines the richEditor Gestures.\n *\n * @interface RichEditorGesture\n * @syscap SystemCapability.ArkUI.ArkUI.Full\n * @crossplatform\n * @since 11\n */\n/**\n * Defines the richEditor Gestures.\n *\n * @interface RichEditorGesture\n * @syscap SystemCapability.ArkUI.ArkUI.Full\n * @crossplatform\n * @atomicservice\n * @since 12\n */\ndeclare interface RichEditorGesture {\n    /**\n     * Trigger a click event when a click is clicked.\n     *\n     * @type { ?function }\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @crossplatform\n     * @since 11\n     */\n    /**\n     * Trigger a click event when a click is clicked.\n     *\n     * @type { ?Callback<ClickEvent> }\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @crossplatform\n     * @atomicservice\n     * @since 12\n     */\n    onClick?: Callback<ClickEvent>;\n    /**\n     * Trigger a gesture event when long press event is complete.\n     *\n     * @type { ?function }\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @crossplatform\n     * @since 11\n     */\n    /**\n     * Trigger a gesture event when long press event is complete.\n     *\n     * @type { ?Callback<GestureEvent> }\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @crossplatform\n     * @atomicservice\n     * @since 12\n     */\n    onLongPress?: Callback<GestureEvent>;\n}\n/**\n * Defines the span options of RichEditor.\n *\n * @interface RichEditorTextSpanOptions\n * @syscap SystemCapability.ArkUI.ArkUI.Full\n * @since 10\n */\n/**\n * Defines the span options of RichEditor.\n *\n * @interface RichEditorTextSpanOptions\n * @syscap SystemCapability.ArkUI.ArkUI.Full\n * @crossplatform\n * @atomicservice\n * @since 11\n */\ndeclare interface RichEditorTextSpanOptions {\n    /**\n     * the offset that add a text span at.\n     *\n     * @type { ?number }\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @since 10\n     */\n    /**\n     * the offset that add a text span at.\n     *\n     * @type { ?number }\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @crossplatform\n     * @atomicservice\n     * @since 11\n     */\n    offset?: number;\n    /**\n     * text style.\n     *\n     * @type { ?RichEditorTextStyle }\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @since 10\n     */\n    /**\n     * text style.\n     *\n     * @type { ?RichEditorTextStyle }\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @crossplatform\n     * @atomicservice\n     * @since 11\n     */\n    style?: RichEditorTextStyle;\n    /**\n     * Paragraph style.\n     *\n     * @type { ?RichEditorParagraphStyle }\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @crossplatform\n     * @since 11\n     */\n    /**\n     * Paragraph style.\n     *\n     * @type { ?RichEditorParagraphStyle }\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @crossplatform\n     * @atomicservice\n     * @since 12\n     */\n    paragraphStyle?: RichEditorParagraphStyle;\n    /**\n     * RichEditor gesture.\n     *\n     * @type { ?RichEditorGesture }\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @crossplatform\n     * @since 11\n     */\n    /**\n     * RichEditor gesture.\n     *\n     * @type { ?RichEditorGesture }\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @crossplatform\n     * @atomicservice\n     * @since 12\n     */\n    gesture?: RichEditorGesture;\n    /**\n     * RichEditor url style.\n     *\n     * @type { ?RichEditorUrlStyle }\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @crossplatform\n     * @atomicservice\n     * @since 19\n     */\n    urlStyle?: RichEditorUrlStyle;\n}\n/**\n * Defines the custom keyboard options of RichEditor.\n *\n * @interface KeyboardOptions\n * @syscap SystemCapability.ArkUI.ArkUI.Full\n * @crossplatform\n * @atomicservice\n * @since 12\n */\ndeclare interface KeyboardOptions {\n    /**\n     * Indicates whether to support custom keyboard avoidance.\n     *\n     * @type { ?boolean }\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @crossplatform\n     * @atomicservice\n     * @since 12\n     */\n    supportAvoidance?: boolean;\n}\n/**\n * Defines the image span options of RichEditor.\n *\n * @interface RichEditorImageSpanOptions\n * @syscap SystemCapability.ArkUI.ArkUI.Full\n * @since 10\n */\n/**\n * Defines the image span options of RichEditor.\n *\n * @interface RichEditorImageSpanOptions\n * @syscap SystemCapability.ArkUI.ArkUI.Full\n * @crossplatform\n * @atomicservice\n * @since 11\n */\ndeclare interface RichEditorImageSpanOptions {\n    /**\n     * the offset that add image span at.\n     *\n     * @type { ?number }\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @since 10\n     */\n    /**\n     * the offset that add image span at.\n     *\n     * @type { ?number }\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @crossplatform\n     * @atomicservice\n     * @since 11\n     */\n    offset?: number;\n    /**\n     * image style.\n     *\n     * @type { ?RichEditorImageSpanStyle }\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @since 10\n     */\n    /**\n     * image style.\n     *\n     * @type { ?RichEditorImageSpanStyle }\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @crossplatform\n     * @atomicservice\n     * @since 11\n     */\n    imageStyle?: RichEditorImageSpanStyle;\n    /**\n     * RichEditor gesture.\n     *\n     * @type { ?RichEditorGesture }\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @crossplatform\n     * @since 11\n     */\n    /**\n     * RichEditor gesture.\n     *\n     * @type { ?RichEditorGesture }\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @crossplatform\n     * @atomicservice\n     * @since 12\n     */\n    gesture?: RichEditorGesture;\n    /**\n     * RichEditor onHover.\n     *\n     * @type { ?OnHoverCallback }\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @crossplatform\n     * @atomicservice\n     * @since 14\n     */\n    onHover?: OnHoverCallback;\n}\n/**\n * Defines the builder span options of RichEditor.\n *\n * @interface RichEditorBuilderSpanOptions\n * @syscap SystemCapability.ArkUI.ArkUI.Full\n * @crossplatform\n * @since 11\n */\n/**\n * Defines the builder span options of RichEditor.\n *\n * @interface RichEditorBuilderSpanOptions\n * @syscap SystemCapability.ArkUI.ArkUI.Full\n * @crossplatform\n * @atomicservice\n * @since 12\n */\ndeclare interface RichEditorBuilderSpanOptions {\n    /**\n     * The offset that add custom builder span at.\n     *\n     * @type { ?number } Indicates the index where the builder will be inserted\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @crossplatform\n     * @since 11\n     */\n    /**\n     * The offset that add custom builder span at.\n     *\n     * @type { ?number } Indicates the index where the builder will be inserted\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @crossplatform\n     * @atomicservice\n     * @since 12\n     */\n    offset?: number;\n}\n/**\n * Defines the placeholder style.\n *\n * @interface PlaceholderStyle\n * @syscap SystemCapability.ArkUI.ArkUI.Full\n * @crossplatform\n * @atomicservice\n * @since 12\n */\ndeclare interface PlaceholderStyle {\n    /**\n     * font.\n     *\n     * @type { ?Font }\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @crossplatform\n     * @atomicservice\n     * @since 12\n     */\n    font?: Font;\n    /**\n     * fontColor.\n     *\n     * @type { ?ResourceColor }\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @crossplatform\n     * @atomicservice\n     * @since 12\n     */\n    fontColor?: ResourceColor;\n}\n/**\n * Defines span style option of RichEditor.\n *\n * @extends RichEditorRange\n * @interface RichEditorSpanStyleOptions\n * @syscap SystemCapability.ArkUI.ArkUI.Full\n * @since 10\n */\n/**\n * Defines span style option of RichEditor.\n *\n * @extends RichEditorRange\n * @interface RichEditorSpanStyleOptions\n * @syscap SystemCapability.ArkUI.ArkUI.Full\n * @crossplatform\n * @atomicservice\n * @since 11\n */\ndeclare interface RichEditorSpanStyleOptions extends RichEditorRange {\n}\n/**\n * Defines paragraph style option of RichEditor.\n *\n * @extends RichEditorRange\n * @interface RichEditorParagraphStyleOptions\n * @syscap SystemCapability.ArkUI.ArkUI.Full\n * @crossplatform\n * @since 11\n */\n/**\n * Defines paragraph style option of RichEditor.\n *\n * @extends RichEditorRange\n * @interface RichEditorParagraphStyleOptions\n * @syscap SystemCapability.ArkUI.ArkUI.Full\n * @crossplatform\n * @atomicservice\n * @since 12\n */\ndeclare interface RichEditorParagraphStyleOptions extends RichEditorRange {\n    /**\n     * Paragraph style.\n     *\n     * @type { RichEditorParagraphStyle }\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @crossplatform\n     * @since 11\n     */\n    /**\n     * Paragraph style.\n     *\n     * @type { RichEditorParagraphStyle }\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @crossplatform\n     * @atomicservice\n     * @since 12\n     */\n    style: RichEditorParagraphStyle;\n}\n/**\n * Defines text span style option of RichEditor.\n *\n * @extends RichEditorSpanStyleOptions\n * @interface RichEditorUpdateTextSpanStyleOptions\n * @syscap SystemCapability.ArkUI.ArkUI.Full\n * @since 10\n */\n/**\n * Defines text span style option of RichEditor.\n *\n * @extends RichEditorSpanStyleOptions\n * @interface RichEditorUpdateTextSpanStyleOptions\n * @syscap SystemCapability.ArkUI.ArkUI.Full\n * @crossplatform\n * @atomicservice\n * @since 11\n */\ndeclare interface RichEditorUpdateTextSpanStyleOptions extends RichEditorSpanStyleOptions {\n    /**\n     * text style.\n     *\n     * @type { RichEditorTextStyle }\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @since 10\n     */\n    /**\n     * text style.\n     *\n     * @type { RichEditorTextStyle }\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @crossplatform\n     * @atomicservice\n     * @since 11\n     */\n    textStyle: RichEditorTextStyle;\n    /**\n     * RichEditor url style.\n     *\n     * @type { ?RichEditorUrlStyle }\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @crossplatform\n     * @atomicservice\n     * @since 19\n     */\n    urlStyle?: RichEditorUrlStyle;\n}\n/**\n * Defines image span style option of RichEditor.\n *\n * @extends RichEditorSpanStyleOptions\n * @interface RichEditorUpdateImageSpanStyleOptions\n * @syscap SystemCapability.ArkUI.ArkUI.Full\n * @since 10\n */\n/**\n * Defines image span style option of RichEditor.\n *\n * @extends RichEditorSpanStyleOptions\n * @interface RichEditorUpdateImageSpanStyleOptions\n * @syscap SystemCapability.ArkUI.ArkUI.Full\n * @crossplatform\n * @atomicservice\n * @since 11\n */\ndeclare interface RichEditorUpdateImageSpanStyleOptions extends RichEditorSpanStyleOptions {\n    /**\n     * image style.\n     *\n     * @type { RichEditorImageSpanStyle }\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @since 10\n     */\n    /**\n     * image style.\n     *\n     * @type { RichEditorImageSpanStyle }\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @crossplatform\n     * @atomicservice\n     * @since 11\n     */\n    imageStyle: RichEditorImageSpanStyle;\n}\n/**\n * Defines symbol span style option of RichEditor.\n *\n * @extends RichEditorSpanStyleOptions\n * @interface RichEditorUpdateSymbolSpanStyleOptions\n * @syscap SystemCapability.ArkUI.ArkUI.Full\n * @crossplatform\n * @since 11\n */\n/**\n * Defines symbol span style option of RichEditor.\n *\n * @extends RichEditorSpanStyleOptions\n * @interface RichEditorUpdateSymbolSpanStyleOptions\n * @syscap SystemCapability.ArkUI.ArkUI.Full\n * @crossplatform\n * @atomicservice\n * @since 12\n */\ndeclare interface RichEditorUpdateSymbolSpanStyleOptions extends RichEditorSpanStyleOptions {\n    /**\n     * Update the symbol span style.\n     *\n     * @type { RichEditorSymbolSpanStyle }\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @crossplatform\n     * @since 11\n     */\n    /**\n     * Update the symbol span style.\n     *\n     * @type { RichEditorSymbolSpanStyle }\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @crossplatform\n     * @atomicservice\n     * @since 12\n     */\n    symbolStyle: RichEditorSymbolSpanStyle;\n}\n/**\n * Defines the symbol span options of RichEditor.\n *\n * @interface RichEditorSymbolSpanOptions\n * @syscap SystemCapability.ArkUI.ArkUI.Full\n * @crossplatform\n * @since 11\n */\n/**\n * Defines the symbol span options of RichEditor.\n *\n * @interface RichEditorSymbolSpanOptions\n * @syscap SystemCapability.ArkUI.ArkUI.Full\n * @crossplatform\n * @atomicservice\n * @since 12\n */\ndeclare interface RichEditorSymbolSpanOptions {\n    /**\n     * The offset that add custom symbol span at.\n     *\n     * @type { ?number }\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @crossplatform\n     * @since 11\n     */\n    /**\n     * The offset that add custom symbol span at.\n     *\n     * @type { ?number }\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @crossplatform\n     * @atomicservice\n     * @since 12\n     */\n    offset?: number;\n    /**\n     * The style that add custom symbol span at.\n     *\n     * @type { ?RichEditorSymbolSpanStyle }\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @crossplatform\n     * @since 11\n     */\n    /**\n     * The style that add custom symbol span at.\n     *\n     * @type { ?RichEditorSymbolSpanStyle }\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @crossplatform\n     * @atomicservice\n     * @since 12\n     */\n    style?: RichEditorSymbolSpanStyle;\n}\n/**\n * Defines the text information for editing.\n *\n * @interface RichEditorSelection\n * @syscap SystemCapability.ArkUI.ArkUI.Full\n * @since 10\n */\n/**\n * Defines the text information for editing.\n *\n * @interface RichEditorSelection\n * @syscap SystemCapability.ArkUI.ArkUI.Full\n * @crossplatform\n * @atomicservice\n * @since 11\n */\ndeclare interface RichEditorSelection {\n    /**\n     * The location info.\n     *\n     * @type { [number, number] }\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @since 10\n     */\n    /**\n     * The location info.\n     *\n     * @type { [number, number] }\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @crossplatform\n     * @atomicservice\n     * @since 11\n     */\n    selection: [\n        number,\n        number\n    ];\n    /**\n     * The selected text content.\n     *\n     * @type { Array<RichEditorTextSpanResult | RichEditorImageSpanResult> }\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @since 10\n     */\n    /**\n     * The selected text content.\n     *\n     * @type { Array<RichEditorTextSpanResult | RichEditorImageSpanResult> }\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @crossplatform\n     * @atomicservice\n     * @since 11\n     */\n    spans: Array<RichEditorTextSpanResult | RichEditorImageSpanResult>;\n}\n/**\n * Defines the inserted text value info.\n *\n * @interface RichEditorInsertValue\n * @syscap SystemCapability.ArkUI.ArkUI.Full\n * @since 10\n */\n/**\n * Defines the inserted text value info.\n *\n * @interface RichEditorInsertValue\n * @syscap SystemCapability.ArkUI.ArkUI.Full\n * @crossplatform\n * @atomicservice\n * @since 11\n */\ndeclare interface RichEditorInsertValue {\n    /**\n     * The location info where the value will be inserted.\n     *\n     * @type { number }\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @since 10\n     */\n    /**\n     * The location info where the value will be inserted.\n     *\n     * @type { number }\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @crossplatform\n     * @atomicservice\n     * @since 11\n     */\n    insertOffset: number;\n    /**\n     * The inserted value.\n     *\n     * @type { string }\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @since 10\n     */\n    /**\n     * The inserted value.\n     *\n     * @type { string }\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @crossplatform\n     * @atomicservice\n     * @since 11\n     */\n    insertValue: string;\n    /**\n     * The preview text.\n     *\n     * @type { ?string }\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @crossplatform\n     * @atomicservice\n     * @since 12\n     */\n    previewText?: string;\n}\n/**\n * Provides an interface for deleting value from text.\n *\n * @interface RichEditorDeleteValue\n * @syscap SystemCapability.ArkUI.ArkUI.Full\n * @since 10\n */\n/**\n * Provides an interface for deleting value from text.\n *\n * @interface RichEditorDeleteValue\n * @syscap SystemCapability.ArkUI.ArkUI.Full\n * @crossplatform\n * @atomicservice\n * @since 11\n */\ndeclare interface RichEditorDeleteValue {\n    /**\n     * The offset of deleting.\n     *\n     * @type { number }\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @since 10\n     */\n    /**\n     * The offset of deleting.\n     *\n     * @type { number }\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @crossplatform\n     * @atomicservice\n     * @since 11\n     */\n    offset: number;\n    /**\n     * The deleted direction.\n     *\n     * @type { RichEditorDeleteDirection }\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @since 10\n     */\n    /**\n     * The deleted direction.\n     *\n     * @type { RichEditorDeleteDirection }\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @crossplatform\n     * @atomicservice\n     * @since 11\n     */\n    direction: RichEditorDeleteDirection;\n    /**\n     * The deleted text length.\n     *\n     * @type { number }\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @since 10\n     */\n    /**\n     * The deleted text length.\n     *\n     * @type { number }\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @crossplatform\n     * @atomicservice\n     * @since 11\n     */\n    length: number;\n    /**\n     * The deleted span object.\n     *\n     * @type { Array<RichEditorTextSpanResult | RichEditorImageSpanResult> }\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @since 10\n     */\n    /**\n     * The deleted span object.\n     *\n     * @type { Array<RichEditorTextSpanResult | RichEditorImageSpanResult> }\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @crossplatform\n     * @atomicservice\n     * @since 11\n     */\n    richEditorDeleteSpans: Array<RichEditorTextSpanResult | RichEditorImageSpanResult>;\n}\n/**\n * Provides an interface for changes in the text.\n *\n * @interface RichEditorChangeValue\n * @syscap SystemCapability.ArkUI.ArkUI.Full\n * @crossplatform\n * @atomicservice\n * @since 12\n */\ndeclare interface RichEditorChangeValue {\n    /**\n     * Range of content that will be replaced.\n     *\n     * @type { TextRange }\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @crossplatform\n     * @atomicservice\n     * @since 12\n     */\n    rangeBefore: TextRange;\n    /**\n     * Text spans to replace.\n     *\n     * @type { Array<RichEditorTextSpanResult> }\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @crossplatform\n     * @atomicservice\n     * @since 12\n     */\n    replacedSpans: Array<RichEditorTextSpanResult>;\n    /**\n     * Image spans to replace.\n     *\n     * @type { Array<RichEditorImageSpanResult> }\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @crossplatform\n     * @atomicservice\n     * @since 12\n     */\n    replacedImageSpans: Array<RichEditorImageSpanResult>;\n    /**\n     * Symbol spans to replace.\n     *\n     * @type { Array<RichEditorTextSpanResult> }\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @crossplatform\n     * @atomicservice\n     * @since 12\n     */\n    replacedSymbolSpans: Array<RichEditorTextSpanResult>;\n}\n/**\n * Defines the options of RichEditor.\n *\n * @interface RichEditorOptions\n * @syscap SystemCapability.ArkUI.ArkUI.Full\n * @since 10\n */\n/**\n * Defines the options of RichEditor.\n *\n * @interface RichEditorOptions\n * @syscap SystemCapability.ArkUI.ArkUI.Full\n * @crossplatform\n * @atomicservice\n * @since 11\n */\ndeclare interface RichEditorOptions {\n    /**\n     * RichEditor controller.\n     *\n     * @type { RichEditorController }\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @since 10\n     */\n    /**\n     * RichEditor controller.\n     *\n     * @type { RichEditorController }\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @crossplatform\n     * @atomicservice\n     * @since 11\n     */\n    controller: RichEditorController;\n}\n/**\n * Defines the options of RichEditor with StyledString.\n *\n * @interface RichEditorStyledStringOptions\n * @syscap SystemCapability.ArkUI.ArkUI.Full\n * @crossplatform\n * @atomicservice\n * @since 12\n */\ndeclare interface RichEditorStyledStringOptions {\n    /**\n     * RichEditor controller.\n     *\n     * @type { RichEditorStyledStringController }\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @crossplatform\n     * @atomicservice\n     * @since 12\n     */\n    controller: RichEditorStyledStringController;\n}\n/**\n * Defines the selection menu options.\n *\n * @interface SelectionMenuOptions\n * @syscap SystemCapability.ArkUI.ArkUI.Full\n * @crossplatform\n * @since 10\n */\n/**\n * Defines the selection menu options.\n *\n * @interface SelectionMenuOptions\n * @syscap SystemCapability.ArkUI.ArkUI.Full\n * @crossplatform\n * @atomicservice\n * @since 11\n */\ndeclare interface SelectionMenuOptions {\n    /**\n     * Callback function when the selection menu appears.\n     *\n     * @type { ?function }\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @crossplatform\n     * @since 10\n     */\n    /**\n     * Callback function when the selection menu appears.\n     *\n     * @type { ?function }\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @crossplatform\n     * @atomicservice\n     * @since 11\n     */\n    /**\n     * Callback function when the selection menu appears.\n     *\n     * @type { ?MenuOnAppearCallback }\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @crossplatform\n     * @atomicservice\n     * @since 12\n     */\n    onAppear?: MenuOnAppearCallback;\n    /**\n     * Callback function when the selection menu disappears.\n     *\n     * @type { ?function }\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @crossplatform\n     * @since 10\n     */\n    /**\n     * Callback function when the selection menu disappears.\n     *\n     * @type { ?function }\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @crossplatform\n     * @atomicservice\n     * @since 11\n     */\n    /**\n     * Callback function when the selection menu disappears.\n     *\n     * @type { ?Callback<void> }\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @crossplatform\n     * @atomicservice\n     * @since 12\n     */\n    onDisappear?: Callback<void>;\n    /**\n     * Menu type, default value is MenuType.SELECTION_MENU.\n     *\n     * @type { ?MenuType }\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @crossplatform\n     * @atomicservice\n     * @since 13\n     */\n    menuType?: MenuType;\n    /**\n     * Callback function when the selection menu is displayed.\n     *\n     * @type { ?MenuCallback }\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @crossplatform\n     * @atomicservice\n     * @since 15\n     */\n    onMenuShow?: MenuCallback;\n    /**\n     * Callback function when the selection menu is hidden.\n     *\n     * @type { ?MenuCallback }\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @crossplatform\n     * @atomicservice\n     * @since 15\n     */\n    onMenuHide?: MenuCallback;\n    /**\n     * Defines the preview menu options.\n     *\n     * @type { ?PreviewMenuOptions }\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @atomicservice\n     * @since 18\n     */\n    previewMenuOptions?: PreviewMenuOptions;\n}\n/**\n * Defines the preview menu options.\n *\n * @interface PreviewMenuOptions\n * @syscap SystemCapability.ArkUI.ArkUI.Full\n * @atomicservice\n * @since 18\n */\ndeclare interface PreviewMenuOptions {\n    /**\n     * Defines the haptic feedback mode of preview menu.\n     *\n     * @type { ?HapticFeedbackMode }\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @atomicservice\n     * @since 18\n     */\n    hapticFeedbackMode?: HapticFeedbackMode;\n}\n/**\n * Provides Base Controller for RichEditor.\n *\n * @implements TextEditControllerEx\n * @syscap SystemCapability.ArkUI.ArkUI.Full\n * @crossplatform\n * @atomicservice\n * @since 12\n */\ndeclare class RichEditorBaseController implements TextEditControllerEx {\n    /**\n     * Get caret offset from controller.\n     *\n     * @returns { number }\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @since 10\n     */\n    /**\n     * Get caret offset from controller.\n     *\n     * @returns { number }\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @crossplatform\n     * @atomicservice\n     * @since 11\n     */\n    getCaretOffset(): number;\n    /**\n     * Set caret offset.\n     *\n     * @param { number } offset - caret offset.\n     * @returns { boolean }\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @since 10\n     */\n    /**\n     * Set caret offset.\n     *\n     * @param { number } offset - caret offset.\n     * @returns { boolean }\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @crossplatform\n     * @atomicservice\n     * @since 11\n     */\n    setCaretOffset(offset: number): boolean;\n    /**\n     * close the select menu when menu is on.\n     *\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @since 10\n     */\n    /**\n     * close the select menu when menu is on.\n     *\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @crossplatform\n     * @atomicservice\n     * @since 11\n     */\n    closeSelectionMenu(): void;\n    /**\n     * Get the typing text style.\n     *\n     * @returns { RichEditorTextStyle }\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @crossplatform\n     * @since 11\n     */\n    /**\n     * Get the typing text style.\n     *\n     * @returns { RichEditorTextStyle }\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @crossplatform\n     * @atomicservice\n     * @since 12\n     */\n    getTypingStyle(): RichEditorTextStyle;\n    /**\n     * Set the typing text style.\n     *\n     * @param { RichEditorTextStyle } value - set the typing text style.\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @crossplatform\n     * @since 11\n     */\n    /**\n     * Set the typing text style.\n     *\n     * @param { RichEditorTextStyle } value - set the typing text style.\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @crossplatform\n     * @atomicservice\n     * @since 12\n     */\n    setTypingStyle(value: RichEditorTextStyle): void;\n    /**\n     * Text selection is achieved by specifying the start and end positions of the rich editor.\n     *\n     * @param { number } selectionStart - The start position of the selected text.\n     * @param { number } selectionEnd - The end position of the selected text.\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @crossplatform\n     * @since 11\n     */\n    /**\n     * Specify the start and end positions to select a range of content.\n     *\n     * @param { number } selectionStart - The start position of the selected text.\n     * @param { number } selectionEnd - The end position of the selected text.\n     * @param { SelectionOptions } [options] - Indicates the options of selection.\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @crossplatform\n     * @atomicservice\n     * @since 12\n     */\n    setSelection(selectionStart: number, selectionEnd: number, options?: SelectionOptions): void;\n    /**\n     * Judge whether is in editing state\n     *\n     * @returns { boolean } - true is editing state, false is non editing status\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @crossplatform\n     * @atomicservice\n     * @since 12\n     */\n    isEditing(): boolean;\n    /**\n     * Stop editing state.\n     *\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @crossplatform\n     * @atomicservice\n     * @since 12\n     */\n    stopEditing(): void;\n    /**\n     * Get LayoutManager.\n     *\n     * @returns { LayoutManager } - Return the LayoutManager.\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @crossplatform\n     * @atomicservice\n     * @since 12\n     */\n    getLayoutManager(): LayoutManager;\n    /**\n     * Get PreviewText.\n     *\n     * @returns { PreviewText } - Return the PreviewText.\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @crossplatform\n     * @atomicservice\n     * @since 12\n     */\n    getPreviewText(): PreviewText;\n    /**\n     * Get CaretRect.\n     *\n     * @returns { RectResult | undefined } - Return the caret rect or undefined value.\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @crossplatform\n     * @atomicservice\n     * @since 18\n     */\n    getCaretRect(): RectResult | undefined;\n}\n/**\n * Provides Controller for RichEditor.\n *\n * @syscap SystemCapability.ArkUI.ArkUI.Full\n * @since 10\n */\n/**\n * Provides Controller for RichEditor.\n *\n * @syscap SystemCapability.ArkUI.ArkUI.Full\n * @crossplatform\n * @atomicservice\n * @since 11\n */\n/**\n * Provides Controller for RichEditor.\n *\n * @extends RichEditorBaseController\n * @syscap SystemCapability.ArkUI.ArkUI.Full\n * @crossplatform\n * @atomicservice\n * @since 12\n */\ndeclare class RichEditorController extends RichEditorBaseController {\n    /**\n     * Add a text span.\n     *\n     * @param { string } value - text value.\n     * @param { RichEditorTextSpanOptions } [options] - span info.\n     * @returns { number } span index\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @since 10\n     */\n    /**\n     * Add a text span.\n     *\n     * @param { string } value - text value.\n     * @param { RichEditorTextSpanOptions } [options] - span info.\n     * @returns { number } span index\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @crossplatform\n     * @atomicservice\n     * @since 11\n     */\n    /**\n    * Add a text span.\n    *\n    * @param { ResourceStr } content - text value.\n    * @param { RichEditorTextSpanOptions } [options] - span info.\n    * @returns { number } span index\n    * @syscap SystemCapability.ArkUI.ArkUI.Full\n    * @crossplatform\n    * @atomicservice\n    * @since 20\n    */\n    addTextSpan(content: ResourceStr, options?: RichEditorTextSpanOptions): number;\n    /**\n     * Add a image span.\n     *\n     * @param { PixelMap | ResourceStr } value - image value.\n     * @param { RichEditorImageSpanOptions } [options] - image span info.\n     * @returns { number } span index\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @since 10\n     */\n    /**\n     * Add a image span.\n     *\n     * @param { PixelMap | ResourceStr } value - image value.\n     * @param { RichEditorImageSpanOptions } [options] - image span info.\n     * @returns { number } span index\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @crossplatform\n     * @atomicservice\n     * @since 11\n     */\n    addImageSpan(value: PixelMap | ResourceStr, options?: RichEditorImageSpanOptions): number;\n    /**\n     * Add a builder span.\n     *\n     * @param { CustomBuilder } value - Indicates the custom builder node\n     * @param { RichEditorBuilderSpanOptions } [options] - span option.\n     * @returns { number } span index\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @crossplatform\n     * @since 11\n     */\n    /**\n     * Add a builder span.\n     *\n     * @param { CustomBuilder } value - Indicates the custom builder node\n     * @param { RichEditorBuilderSpanOptions } [options] - span option.\n     * @returns { number } span index\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @crossplatform\n     * @atomicservice\n     * @since 12\n     */\n    addBuilderSpan(value: CustomBuilder, options?: RichEditorBuilderSpanOptions): number;\n    /**\n     * Add a symbol span.\n     *\n     * @param { Resource } value - symbol span value\n     * @param { RichEditorSymbolSpanOptions } [options] - symbol span option.\n     * @returns { number } symbol span index\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @crossplatform\n     * @since 11\n     */\n    /**\n     * Add a symbol span.\n     *\n     * @param { Resource } value - symbol span value\n     * @param { RichEditorSymbolSpanOptions } [options] - symbol span option.\n     * @returns { number } symbol span index\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @crossplatform\n     * @atomicservice\n     * @since 12\n     */\n    addSymbolSpan(value: Resource, options?: RichEditorSymbolSpanOptions): number;\n    /**\n     * Modify span style.\n     *\n     * @param { RichEditorUpdateTextSpanStyleOptions | RichEditorUpdateImageSpanStyleOptions } value\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @since 10\n     */\n    /**\n     * Modify span style.\n     *\n     * @param { RichEditorUpdateTextSpanStyleOptions | RichEditorUpdateImageSpanStyleOptions | RichEditorUpdateSymbolSpanStyleOptions } value\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @crossplatform\n     * @atomicservice\n     * @since 11\n     */\n    updateSpanStyle(value: RichEditorUpdateTextSpanStyleOptions | RichEditorUpdateImageSpanStyleOptions | RichEditorUpdateSymbolSpanStyleOptions): void;\n    /**\n     * Modify span style.\n     *\n     * @param { RichEditorParagraphStyleOptions } value\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @crossplatform\n     * @since 11\n     */\n    /**\n     * Modify span style.\n     *\n     * @param { RichEditorParagraphStyleOptions } value\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @crossplatform\n     * @atomicservice\n     * @since 12\n     */\n    updateParagraphStyle(value: RichEditorParagraphStyleOptions): void;\n    /**\n     * Delete span.\n     *\n     * @param { RichEditorRange } [value] - range for deleting.\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @since 10\n     */\n    /**\n     * Delete span.\n     *\n     * @param { RichEditorRange } [value] - range for deleting.\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @crossplatform\n     * @atomicservice\n     * @since 11\n     */\n    deleteSpans(value?: RichEditorRange): void;\n    /**\n     * Get span content.\n     *\n     * @param { RichEditorRange } [value] - range for getting span info.\n     * @returns { Array<RichEditorImageSpanResult | RichEditorTextSpanResult> }\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @since 10\n     */\n    /**\n     * Get span content.\n     *\n     * @param { RichEditorRange } [value] - range for getting span info.\n     * @returns { Array<RichEditorImageSpanResult | RichEditorTextSpanResult> }\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @crossplatform\n     * @atomicservice\n     * @since 11\n     */\n    getSpans(value?: RichEditorRange): Array<RichEditorImageSpanResult | RichEditorTextSpanResult>;\n    /**\n     * Get span content.\n     *\n     * @param { RichEditorRange } [value] - range for getting span info.\n     * @returns { Array<RichEditorParagraphResult> }\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @crossplatform\n     * @since 11\n     */\n    /**\n     * Get span content.\n     *\n     * @param { RichEditorRange } [value] - range for getting span info.\n     * @returns { Array<RichEditorParagraphResult> }\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @crossplatform\n     * @atomicservice\n     * @since 12\n     */\n    getParagraphs(value?: RichEditorRange): Array<RichEditorParagraphResult>;\n    /**\n     * Called when the content is selected.\n     *\n     * @returns { RichEditorSelection }\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @crossplatform\n     * @since 11\n     */\n    /**\n     * Called when the content is selected.\n     *\n     * @returns { RichEditorSelection }\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @crossplatform\n     * @atomicservice\n     * @since 12\n     */\n    getSelection(): RichEditorSelection;\n    /**\n     * Convert StyledString to spans in rich editor.\n     * return a empty Array<RichEditorSpan> if convert failed\n     *\n     * @param { StyledString } value - StyledString.\n     * @returns { Array<RichEditorSpan> }\n     * @throws { BusinessError } 401 - The parameter check failed.\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @crossplatform\n     * @atomicservice\n     * @since 12\n     */\n    fromStyledString(value: StyledString): Array<RichEditorSpan>;\n    /**\n     * Convert spans to StyledString in rich editor.\n     * return a empty StyledString if convert failed\n     *\n     * @param { RichEditorRange } value - range of spans in rich editor\n     * @returns { StyledString }\n     * @throws { BusinessError } 401 - The parameter check failed.\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @crossplatform\n     * @atomicservice\n     * @since 12\n     */\n    toStyledString(value: RichEditorRange): StyledString;\n}\n/**\n * Defines the types of spans in rich editor.\n *\n * @typedef { RichEditorImageSpanResult | RichEditorTextSpanResult } RichEditorSpan\n * @syscap SystemCapability.ArkUI.ArkUI.Full\n * @crossplatform\n * @atomicservice\n * @since 12\n */\ndeclare type RichEditorSpan = RichEditorImageSpanResult | RichEditorTextSpanResult;\n/**\n * Provides Controller for RichEditor with StyledString.\n *\n * @extends RichEditorBaseController\n * @implements StyledStringController\n * @syscap SystemCapability.ArkUI.ArkUI.Full\n * @crossplatform\n * @atomicservice\n * @since 12\n */\ndeclare class RichEditorStyledStringController extends RichEditorBaseController implements StyledStringController {\n    /**\n     * Set the StyledString of the RichEditor.\n     *\n     * @param { StyledString } styledString - StyledString.\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @crossplatform\n     * @atomicservice\n     * @since 12\n     */\n    setStyledString(styledString: StyledString): void;\n    /**\n     * Get the StyledString of the RichEditor.\n     *\n     * @returns { MutableStyledString }\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @atomicservice\n     * @since 12\n     */\n    getStyledString(): MutableStyledString;\n    /**\n     * Get the selection in the StyledString of the RichEditor.\n     *\n     * @returns { RichEditorRange }\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @crossplatform\n     * @atomicservice\n     * @since 12\n     */\n    getSelection(): RichEditorRange;\n    /**\n     * Register content changed listener\n     *\n     * @param { StyledStringChangedListener } listener - content changed listener.\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @crossplatform\n     * @atomicservice\n     * @since 12\n     */\n    onContentChanged(listener: StyledStringChangedListener): void;\n}\n/**\n * Provides attribute for RichEditor.\n *\n * @extends CommonMethod<RichEditorAttribute>\n * @syscap SystemCapability.ArkUI.ArkUI.Full\n * @since 10\n */\n/**\n * Provides attribute for RichEditor.\n *\n * @extends CommonMethod<RichEditorAttribute>\n * @syscap SystemCapability.ArkUI.ArkUI.Full\n * @crossplatform\n * @atomicservice\n * @since 11\n */\ndeclare class RichEditorAttribute extends CommonMethod<RichEditorAttribute> {\n    /**\n     * Called when on ready.\n     *\n     * @param { function } callback - The triggered function when rich editor is ready.\n     * @returns { RichEditorAttribute }\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @since 10\n     */\n    /**\n     * Called when on ready.\n     *\n     * @param { function } callback - The triggered function when rich editor is ready.\n     * @returns { RichEditorAttribute }\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @crossplatform\n     * @atomicservice\n     * @since 11\n     */\n    /**\n     * Called when on ready.\n     *\n     * @param { Callback<void> } callback - The triggered function when rich editor is ready.\n     * @returns { RichEditorAttribute }\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @crossplatform\n     * @atomicservice\n     * @since 12\n     */\n    onReady(callback: Callback<void>): RichEditorAttribute;\n    /**\n     * Called when the content is selected.\n     *\n     * @param { function } callback - The triggered function when select text.\n     * @returns { RichEditorAttribute }\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @since 10\n     */\n    /**\n     * Called when the content is selected.\n     *\n     * @param { function } callback - The triggered function when select text.\n     * @returns { RichEditorAttribute }\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @crossplatform\n     * @atomicservice\n     * @since 11\n     */\n    /**\n     * Called when the content is selected.\n     *\n     * @param { Callback<RichEditorSelection> } callback - The triggered function when select text.\n     * @returns { RichEditorAttribute }\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @crossplatform\n     * @atomicservice\n     * @since 12\n     */\n    onSelect(callback: Callback<RichEditorSelection>): RichEditorAttribute;\n    /**\n     * Called when selection range or caret position is changed.\n     *\n     * @param { Callback<RichEditorRange> } callback - The triggered function when change selection range or caret position.\n     * @returns { RichEditorAttribute }\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @crossplatform\n     * @atomicservice\n     * @since 12\n     */\n    onSelectionChange(callback: Callback<RichEditorRange>): RichEditorAttribute;\n    /**\n     * Get text value information when about to input.\n     *\n     * @param { function } callback - The triggered function when text content is about to insert.\n     * @returns { RichEditorAttribute }\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @since 10\n     */\n    /**\n     * Get text value information when about to input.\n     *\n     * @param { function } callback - The triggered function when text content is about to insert.\n     * @returns { RichEditorAttribute }\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @crossplatform\n     * @atomicservice\n     * @since 11\n     */\n    /**\n     * Get text value information when about to input.\n     *\n     * @param { Callback<RichEditorInsertValue, boolean> } callback - The triggered function when text content is about to insert.\n     * @returns { RichEditorAttribute }\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @crossplatform\n     * @atomicservice\n     * @since 12\n     */\n    aboutToIMEInput(callback: Callback<RichEditorInsertValue, boolean>): RichEditorAttribute;\n    /**\n     * Get text value information when completed input.\n     *\n     * @param { function } callback - The triggered function when text content has been inserted.\n     * @returns { RichEditorAttribute }\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @since 10\n     */\n    /**\n     * Get text value information when completed input.\n     *\n     * @param { function } callback - The triggered function when text content has been inserted.\n     * @returns { RichEditorAttribute }\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @crossplatform\n     * @atomicservice\n     * @since 11\n     */\n    /**\n     * Get text value information when completed input.\n     *\n     * @param { Callback<RichEditorTextSpanResult> } callback - The triggered function when text content has been inserted.\n     * @returns { RichEditorAttribute }\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @crossplatform\n     * @atomicservice\n     * @since 12\n     */\n    onIMEInputComplete(callback: Callback<RichEditorTextSpanResult>): RichEditorAttribute;\n    /**\n     * Called when ime input complete.\n     *\n     * @param { Callback<TextRange> } callback - The triggered function when text content has been inserted.\n     * @returns { RichEditorAttribute }\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @crossplatform\n     * @atomicservice\n     * @since 12\n     */\n    onDidIMEInput(callback: Callback<TextRange>): RichEditorAttribute;\n    /**\n     * Get text value information when about to delete.\n     *\n     * @param { function } callback - The triggered function when text content is about to delete.\n     * @returns { RichEditorAttribute }\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @since 10\n     */\n    /**\n     * Get text value information when about to delete.\n     *\n     * @param { function } callback - The triggered function when text content is about to delete.\n     * @returns { RichEditorAttribute }\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @crossplatform\n     * @atomicservice\n     * @since 11\n     */\n    /**\n     * Get text value information when about to delete.\n     *\n     * @param { Callback<RichEditorDeleteValue, boolean> } callback - The triggered function when text content is about to delete.\n     * @returns { RichEditorAttribute }\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @crossplatform\n     * @atomicservice\n     * @since 12\n     */\n    aboutToDelete(callback: Callback<RichEditorDeleteValue, boolean>): RichEditorAttribute;\n    /**\n     * Notify that the deletion has been completed\n     *\n     * @param { function } callback - The triggered function when text content has been deleted.\n     * @returns { RichEditorAttribute }\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @since 10\n     */\n    /**\n     * Notify that the deletion has been completed\n     *\n     * @param { function } callback - The triggered function when text content has been deleted.\n     * @returns { RichEditorAttribute }\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @crossplatform\n     * @atomicservice\n     * @since 11\n     */\n    /**\n     * Notify that the deletion has been completed\n     *\n     * @param { Callback<void> } callback - The triggered function when text content has been deleted.\n     * @returns { RichEditorAttribute }\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @crossplatform\n     * @atomicservice\n     * @since 12\n     */\n    onDeleteComplete(callback: Callback<void>): RichEditorAttribute;\n    /**\n     * Allow replication.\n     *\n     * @param { CopyOptions } value - Indicates the type of copy option.\n     * @returns { RichEditorAttribute }\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @crossplatform\n     * @since 10\n     */\n    /**\n     * Allow replication.\n     *\n     * @param { CopyOptions } value - Indicates the type of copy option.\n     * @returns { RichEditorAttribute }\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @crossplatform\n     * @atomicservice\n     * @since 11\n     */\n    copyOptions(value: CopyOptions): RichEditorAttribute;\n    /**\n     * Bind to the selection menu.\n     *\n     * @param { RichEditorSpanType } spanType - Indicates the type of selection menu.\n     * @param { CustomBuilder } content - Indicates the content of selection menu.\n     * @param { ResponseType } responseType - Indicates response type of selection menu.\n     * @param { SelectionMenuOptions } [options] - Indicates the options of selection menu.\n     * @returns { RichEditorAttribute }\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @crossplatform\n     * @since 10\n     */\n    /**\n     * Bind to the selection menu.\n     *\n     * @param { RichEditorSpanType } spanType - Indicates the type of selection menu.\n     * @param { CustomBuilder } content - Indicates the content of selection menu.\n     * @param { ResponseType | RichEditorResponseType } responseType - Indicates response type of selection menu.\n     * @param { SelectionMenuOptions } [options] - Indicates the options of selection menu.\n     * @returns { RichEditorAttribute }\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @crossplatform\n     * @atomicservice\n     * @since 11\n     */\n    bindSelectionMenu(spanType: RichEditorSpanType, content: CustomBuilder, responseType: ResponseType | RichEditorResponseType, options?: SelectionMenuOptions): RichEditorAttribute;\n    /**\n     * Define custom keyboard.\n     *\n     * @param { CustomBuilder } value\n     * @returns { RichEditorAttribute } returns the instance of the RichEditorAttribute.\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @since 10\n     */\n    /**\n     * Define custom keyboard.\n     *\n     * @param { CustomBuilder } value\n     * @returns { RichEditorAttribute } returns the instance of the RichEditorAttribute.\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @crossplatform\n     * @atomicservice\n     * @since 11\n     */\n    /**\n     * Define custom keyboard.\n     *\n     * @param { CustomBuilder } value - Set up a custom keyboard of RichEditor\n     * @param { KeyboardOptions } [options] - Indicates the custom keyboard options of RichEditor\n     * @returns { RichEditorAttribute } returns the instance of the RichEditorAttribute.\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @crossplatform\n     * @atomicservice\n     * @since 12\n     */\n    customKeyboard(value: CustomBuilder, options?: KeyboardOptions): RichEditorAttribute;\n    /**\n      * Defines onPaste callback.\n      *\n      * @param { function } callback Executed when a paste operation is performed.\n      * @returns { RichEditorAttribute } returns the instance of the RichEditorAttribute.\n      * @syscap SystemCapability.ArkUI.ArkUI.Full\n      * @crossplatform\n      * @since 11\n      */\n    /**\n     * Defines onPaste callback.\n     *\n     * @param { PasteEventCallback } callback Executed when a paste operation is performed.\n     * @returns { RichEditorAttribute } returns the instance of the RichEditorAttribute.\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @crossplatform\n     * @atomicservice\n     * @since 12\n     */\n    onPaste(callback: PasteEventCallback): RichEditorAttribute;\n    /**\n     * Enable data detector.\n     *\n     * @param { boolean } enable - Enable data detector.\n     * @returns { RichEditorAttribute } The attribute of the rich editor.\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @crossplatform\n     * @since 11\n     */\n    /**\n     * Enable data detector.\n     *\n     * @param { boolean } enable - Enable data detector.\n     * @returns { RichEditorAttribute } The attribute of the rich editor.\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @crossplatform\n     * @atomicservice\n     * @since 12\n     */\n    enableDataDetector(enable: boolean): RichEditorAttribute;\n    /**\n     * Enable preview text.\n     *\n     * @param { boolean } enable - Enable preview text.\n     * @returns { RichEditorAttribute } The attribute of the rich editor.\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @crossplatform\n     * @atomicservice\n     * @since 12\n     */\n    enablePreviewText(enable: boolean): RichEditorAttribute;\n    /**\n     * Data detector with config.\n     *\n     * @param { TextDataDetectorConfig } config - The config of text data detector.\n     * @returns { RichEditorAttribute } The attribute of the rich editor.\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @crossplatform\n     * @since 11\n     */\n    /**\n     * Data detector with config.\n     *\n     * @param { TextDataDetectorConfig } config - The config of text data detector.\n     * @returns { RichEditorAttribute } The attribute of the rich editor.\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @crossplatform\n     * @atomicservice\n     * @since 12\n     */\n    dataDetectorConfig(config: TextDataDetectorConfig): RichEditorAttribute;\n    /**\n     * Set richEditor placeholder.\n     *\n     * @param { ResourceStr } value - The value of placeholder.\n     * @param { PlaceholderStyle } [style] - The style of placeholder.\n     * @returns { RichEditorAttribute } The attribute of the rich editor.\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @crossplatform\n     * @atomicservice\n     * @since 12\n     */\n    placeholder(value: ResourceStr, style?: PlaceholderStyle): RichEditorAttribute;\n    /**\n    * Set caret color of rich editor.\n    *\n    * @param { ResourceColor } value - Custom color types.\n    * @returns { RichEditorAttribute } The attribute of the rich editor.\n    * @syscap SystemCapability.ArkUI.ArkUI.Full\n    * @crossplatform\n    * @atomicservice\n    * @since 12\n    */\n    caretColor(value: ResourceColor): RichEditorAttribute;\n    /**\n     * Set background color of selected text in rich editor.\n     *\n     * @param { ResourceColor } value - Custom color types.\n     * @returns { RichEditorAttribute } The attribute of the rich editor.\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @crossplatform\n     * @atomicservice\n     * @since 12\n     */\n    selectedBackgroundColor(value: ResourceColor): RichEditorAttribute;\n    /**\n     * Called when edit status is changed\n     *\n     * @param { Callback<boolean> } callback - when edit status is changed\n     * @returns { RichEditorAttribute } returns The attribute of the rich editor.\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @crossplatform\n     * @atomicservice\n     * @since 12\n     */\n    onEditingChange(callback: Callback<boolean>): RichEditorAttribute;\n    /**\n     * Set enter key type of soft keyboard.\n     *\n     * @param { EnterKeyType } value - the enter key type of soft keyboard\n     * @returns { RichEditorAttribute }\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @crossplatform\n     * @atomicservice\n     * @since 12\n     */\n    enterKeyType(value: EnterKeyType): RichEditorAttribute;\n    /**\n     * Called when submitted.\n     *\n     * @param { SubmitCallback } callback - callback of the listened event.\n     * @returns { RichEditorAttribute }\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @crossplatform\n     * @atomicservice\n     * @since 12\n     */\n    onSubmit(callback: SubmitCallback): RichEditorAttribute;\n    /**\n     * Called before text changed.\n     *\n     * @param { Callback<RichEditorChangeValue, boolean> } callback - The triggered function before text content is about to change.\n     * @returns { RichEditorAttribute }\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @crossplatform\n     * @atomicservice\n     * @since 12\n     */\n    onWillChange(callback: Callback<RichEditorChangeValue, boolean>): RichEditorAttribute;\n    /**\n     * Called after text changed.\n     *\n     * @param { OnDidChangeCallback } callback - The triggered function after content changed.\n     * @returns { RichEditorAttribute }\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @crossplatform\n     * @atomicservice\n     * @since 12\n     */\n    onDidChange(callback: OnDidChangeCallback): RichEditorAttribute;\n    /**\n      * Called before the cut event.\n      *\n      * @param { Callback<CutEvent> } callback - Called before the cut event.\n      * @returns { RichEditorAttribute } returns the instance of the RichEditorAttribute.\n      * @syscap SystemCapability.ArkUI.ArkUI.Full\n      * @crossplatform\n      * @atomicservice\n      * @since 12\n      */\n    onCut(callback: Callback<CutEvent>): RichEditorAttribute;\n    /**\n      * Called before the copy event.\n      *\n      * @param { Callback<CopyEvent> } callback - Called before the copy event.\n      * @returns { RichEditorAttribute } returns the instance of the RichEditorAttribute.\n      * @syscap SystemCapability.ArkUI.ArkUI.Full\n      * @crossplatform\n      * @atomicservice\n      * @since 12\n      */\n    onCopy(callback: Callback<CopyEvent>): RichEditorAttribute;\n    /**\n     * Set the custom text menu.\n     *\n     * @param { EditMenuOptions } editMenu - Customize text menu options.\n     * @returns { RichEditorAttribute }\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @crossplatform\n     * @atomicservice\n     * @since 12\n     */\n    editMenuOptions(editMenu: EditMenuOptions): RichEditorAttribute;\n    /**\n     * Sets whether request keyboard or not when on focus.\n     *\n     * @param { boolean } isEnabled - Whether enable request keyboard when on focus.\n     * @returns { RichEditorAttribute } Returns the instance of the RichEditorAttribute.\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @crossplatform\n     * @atomicservice\n     * @since 12\n     */\n    enableKeyboardOnFocus(isEnabled: boolean): RichEditorAttribute;\n    /**\n     * Enable or disable haptic feedback.\n     *\n     * @param { boolean } isEnabled - Default value is true, set false to disable haptic feedback.\n     * @returns { RichEditorAttribute } returns the instance of the RichEditorAttribute.\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @crossplatform\n     * @atomicservice\n     * @since 13\n     */\n    enableHapticFeedback(isEnabled: boolean): RichEditorAttribute;\n    /**\n     * Define bar state of the RichEditor.\n     *\n     * @param { BarState } state - bar state.\n     * @returns { RichEditorAttribute } returns the instance of the RichEditorAttribute.\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @crossplatform\n     * @atomicservice\n     * @since 13\n     */\n    barState(state: BarState): RichEditorAttribute;\n    /**\n     * Define the max length content of the richEditor.\n     *\n     * @param { Optional<number> } maxLength - The maximun length content of the richEditor.\n     * @returns { RichEditorAttribute }  returns the instance of the RichEditorAttribute.\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @crossplatform\n     * @atomicservice\n     * @since 18\n     */\n    maxLength(maxLength: Optional<number>): RichEditorAttribute;\n    /**\n     * Define max lines of the richEditor.\n     *\n     * @param { Optional<number> } maxLines - The maximun Lines of the richEditor.\n     * @returns { RichEditorAttribute } returns the instance of the RichEditorAttribute.\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @crossplatform\n     * @atomicservice\n     * @since 18\n     */\n    maxLines(maxLines: Optional<number>): RichEditorAttribute;\n    /**\n     * Set the keyboard appearance.\n     *\n     * @param { Optional<KeyboardAppearance> } appearance - Default value is KeyboardAppearance.NONE_IMMERSIVE\n     * @returns { RichEditorAttribute } returns the instance of the RichEditorAttribute.\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @atomicservice\n     * @since 15\n     */\n    keyboardAppearance(appearance: Optional<KeyboardAppearance>): RichEditorAttribute;\n    /**\n     * Set whether stop backPressed callback event or not.\n     *\n     * @param { Optional<boolean> } isStopped - Default value is true, set false to trigger the latest callback event.\n     * @returns { RichEditorAttribute } returns the instance of the RichEditorAttribute.\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @atomicservice\n     * @since 18\n     */\n    stopBackPress(isStopped: Optional<boolean>): RichEditorAttribute;\n    /**\n     * Set undo style.\n     *\n     * @param { Optional<UndoStyle> } style - Default value is UndoStyle.CLEAR_STYLE.\n     * @returns { RichEditorAttribute } returns the instance of the RichEditorAttribute.\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @crossplatform\n     * @atomicservice\n     * @since 20\n     */\n    undoStyle(style: Optional<UndoStyle>): RichEditorAttribute;\n}\n/**\n * the callback of cut event.\n * @interface CutEvent\n * @syscap SystemCapability.ArkUI.ArkUI.Full\n * @crossplatform\n * @atomicservice\n * @since 12\n */\ndeclare interface CutEvent {\n    /**\n     * Prevent system cut event.\n     *\n     * @type { ?Callback<void> }\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @crossplatform\n     * @atomicservice\n     * @since 12\n     */\n    preventDefault?: Callback<void>;\n}\n/**\n * the callback of copy event.\n * @interface CopyEvent\n * @syscap SystemCapability.ArkUI.ArkUI.Full\n * @crossplatform\n * @atomicservice\n * @since 12\n */\ndeclare interface CopyEvent {\n    /**\n     * Prevent system cut event.\n     *\n     * @type { ?Callback<void> }\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @crossplatform\n     * @atomicservice\n     * @since 12\n     */\n    preventDefault?: Callback<void>;\n}\n/**\n * RichEditor url style.\n * @interface RichEditorUrlStyle\n * @syscap SystemCapability.ArkUI.ArkUI.Full\n * @crossplatform\n * @atomicservice\n * @since 19\n */\ndeclare interface RichEditorUrlStyle {\n    /**\n     * uniform resoure locator.\n     *\n     * @type { ?ResourceStr }\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @crossplatform\n     * @atomicservice\n     * @since 19\n     */\n    url?: ResourceStr;\n}\n/**\n * callback of the listened enter key event.\n *\n * @typedef { function } SubmitCallback\n * @param { EnterKeyType } enterKey - the enter key type of soft keyboard.\n * @param { SubmitEvent } event - Provides the method of keeping RichEditor editable state when submitted.\n * @syscap SystemCapability.ArkUI.ArkUI.Full\n * @crossplatform\n * @atomicservice\n * @since 12\n */\ndeclare type SubmitCallback = (enterKey: EnterKeyType, event: SubmitEvent) => void;\n/**\n * Callback function when the selection menu appears.\n *\n * @typedef { function } MenuOnAppearCallback\n * @param { number } start - Start offset of the selected content in rich editor.\n * @param { number } end - End offset of the selected content in rich editor.\n * @syscap SystemCapability.ArkUI.ArkUI.Full\n * @crossplatform\n * @atomicservice\n * @since 12\n */\ndeclare type MenuOnAppearCallback = (start: number, end: number) => void;\n/**\n * Callback function when the selection menu show or hide.\n *\n * @typedef { function } MenuCallback\n * @param { number } start - Start offset of the selected content in rich editor.\n * @param { number } end - End offset of the selected content in rich editor.\n * @syscap SystemCapability.ArkUI.ArkUI.Full\n * @crossplatform\n * @atomicservice\n * @since 15\n */\ndeclare type MenuCallback = (start: number, end: number) => void;\n/**\n * Callback function when a paste operation is performed.\n *\n * @typedef { function } PasteEventCallback\n * @param { PasteEvent } [event] - The paste event.\n * @syscap SystemCapability.ArkUI.ArkUI.Full\n * @crossplatform\n * @atomicservice\n * @since 12\n */\ndeclare type PasteEventCallback = (event?: PasteEvent) => void;\n/**\n * callback of the on hover event.\n *\n * @typedef { function } OnHoverCallback\n * @param { boolean } status - The hover status\n * @param { HoverEvent } event - The event info for hover.\n * @syscap SystemCapability.ArkUI.ArkUI.Full\n * @crossplatform\n * @atomicservice\n * @since 14\n */\ndeclare type OnHoverCallback = (status: boolean, event: HoverEvent) => void;\n/**\n * Provides an interface for writing texts.\n *\n * @interface RichEditorInterface\n * @syscap SystemCapability.ArkUI.ArkUI.Full\n * @since 10\n */\n/**\n * Provides an interface for writing texts.\n *\n * @interface RichEditorInterface\n * @syscap SystemCapability.ArkUI.ArkUI.Full\n * @crossplatform\n * @atomicservice\n * @since 11\n */\ninterface RichEditorInterface {\n    /**\n     * Called when create RichEditor.\n     *\n     * @param { RichEditorOptions } value\n     * @returns { RichEditorAttribute }\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @since 10\n     */\n    /**\n     * Called when create RichEditor.\n     *\n     * @param { RichEditorOptions } value\n     * @returns { RichEditorAttribute }\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @crossplatform\n     * @atomicservice\n     * @since 11\n     */\n    (value: RichEditorOptions): RichEditorAttribute;\n    /**\n     * Called when create RichEditor with StyledString.\n     *\n     * @param { RichEditorStyledStringOptions} options\n     * @returns { RichEditorAttribute }\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @crossplatform\n     * @atomicservice\n     * @since 12\n     */\n    (options: RichEditorStyledStringOptions): RichEditorAttribute;\n}\n/**\n * Defines RichEditor Component instance.\n *\n * @syscap SystemCapability.ArkUI.ArkUI.Full\n * @since 10\n */\n/**\n * Defines RichEditor Component instance.\n *\n * @syscap SystemCapability.ArkUI.ArkUI.Full\n * @crossplatform\n * @atomicservice\n * @since 11\n */\ndeclare const RichEditorInstance: RichEditorAttribute;\n/**\n * Defines RichEditor Component.\n *\n * @syscap SystemCapability.ArkUI.ArkUI.Full\n * @since 10\n */\n/**\n * Defines RichEditor Component.\n *\n * @syscap SystemCapability.ArkUI.ArkUI.Full\n * @crossplatform\n * @atomicservice\n * @since 11\n */\ndeclare const RichEditor: RichEditorInterface;\n",
}
export default FILE;